package com.yanfan.music.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;

import com.yanfan.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 背景音乐设备对象 ibms_music_device
 *
 * @author genluo
 * @date 2024-08-27
 */

@Data
public class IbmsMusicDevice implements Serializable{

private static final long serialVersionUID=1L;

    /**
     * 设备id
     */
    @Excel(name = "设备id")
    @TableId(value = "device_id" , type = IdType.AUTO) // 整型类型使用自增
    private Long deviceId;

    /**
     * 设备名
     */
    @Excel(name = "设备名")
    @NotBlank(message = "设备名不能为空")
    private String deviceName;

    /**
     * 位置
     */
    @Excel(name = "位置")
    private String deviceLocation;

    /**
     * 类型
     */
    @Excel(name = "类型")
    private String deviceType;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private String status;

    /**
     * 安装日期
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "安装日期" , width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date installationDate;

    /**
     * 最后维护日期
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "最后维护日期" , width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date lastMaintenanceDate;

    /**
     * ip地址
     */
    @Excel(name = "ip地址")
    private String ipAddress;


}
